<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <h1>差值表达式</h1>
        <h3>{{ msg }}</h3>
        <h3>{{ count }}</h3>
        <div v-text="msg"></div>
        <h1>v-model</h1>
        <input type="text" v-model="msg">
        <input type="text" v-model="count">
        <div label="姓名">{{person.name}}</div>
        <input v-on:click="myFucntion" type="button" value="点击修改msg的值并显示在界面上"></input>
        <div v-html="htmlContent"></div>
    </div>
    <script src="./js/dep.js"></script>
    <script src="./js/Watcher.js"></script>
    <script src="./js/Observer.js"></script>
    <script src="./js/Compiler.js"></script>value
    <script src="./js/MyVue.js"></script>
    <script>
        let vm = new MyVue({
            el:'#app',
            data:{
                msg:"hello Vue",
                count:100,
                person:{
                    name:'peter',
                },
                htmlContent:`<div>我的内容是什么</div>`,
            },
            methods:{
                myFucntion(){
                    this.msg = '我是一个新值'
                }
            }
        });
        console.log(vm.msg);
    </script>
</body>
</html>